package com.mz.ieann.aide.city.api

import com.mz.ieann.aide.city.bean.BaseResult
import com.mz.ieann.aide.city.bean.CreateWifiParam
import com.mz.ieann.aide.city.bean.HeatMapResult
import com.mz.ieann.aide.city.bean.HouseResult
import retrofit2.Call
import retrofit2.http.*

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by zhangmz90
 * @date on 2021 2021/11/14 13:39
 */
interface Dao {

    /**
     * get
     */
    @Headers("Content-Type:application/json", "charset:utf-8")
    @GET("/a/b/c")
    fun queryList(
        @QueryMap map:
        Map<String, String>
    ): Call<BaseResult<HouseResult>>

    /**
     * post
     */
    @Headers("Content-Type:application/json", "charset:utf-8")
    @POST("/a/b/c/{param}/d")
    fun queryDetail(
        @Path("param") param : String,
        @QueryMap map: Map<String, String>,
        @Body body : CreateWifiParam
    ): Call<BaseResult<HeatMapResult>>

}